package com.bookstore.spring.pojo;

/**
 * Created by Admin on 2016/8/4.
 */
public class User {
    private Integer userId;
    private String userName;
    private String password;
    private int accountId;

    public User( String userName, String password, int accountId) {
        this.userName = userName;
        this.password = password;
        this.accountId = accountId;
    }
    public User(String userName, String password){
        this.userName = userName;
        this.password = password;
    }

    public User() {
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {this.password = password; }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAccountId() {
        return accountId;
    }

    public void setAccountId(int accountId) {
        this.accountId = accountId;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", accountId=" + accountId +
                '}';
    }
}
